package com.quanyan.financialSystem.entity.db;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TbBizPlacePayItemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbBizPlacePayItemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIsNull() {
            addCriterion("place_order_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIsNotNull() {
            addCriterion("place_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdEqualTo(String value) {
            addCriterion("place_order_id =", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotEqualTo(String value) {
            addCriterion("place_order_id <>", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdGreaterThan(String value) {
            addCriterion("place_order_id >", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("place_order_id >=", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLessThan(String value) {
            addCriterion("place_order_id <", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLessThanOrEqualTo(String value) {
            addCriterion("place_order_id <=", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLike(String value) {
            addCriterion("place_order_id like", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotLike(String value) {
            addCriterion("place_order_id not like", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIn(List<String> values) {
            addCriterion("place_order_id in", values, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotIn(List<String> values) {
            addCriterion("place_order_id not in", values, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdBetween(String value1, String value2) {
            addCriterion("place_order_id between", value1, value2, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotBetween(String value1, String value2) {
            addCriterion("place_order_id not between", value1, value2, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("pay_type is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(Integer value) {
            addCriterion("pay_type =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(Integer value) {
            addCriterion("pay_type <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(Integer value) {
            addCriterion("pay_type >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_type >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(Integer value) {
            addCriterion("pay_type <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(Integer value) {
            addCriterion("pay_type <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<Integer> values) {
            addCriterion("pay_type in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<Integer> values) {
            addCriterion("pay_type not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(Integer value1, Integer value2) {
            addCriterion("pay_type between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_type not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountIsNull() {
            addCriterion("bird_egg_amount is null");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountIsNotNull() {
            addCriterion("bird_egg_amount is not null");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountEqualTo(BigDecimal value) {
            addCriterion("bird_egg_amount =", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountNotEqualTo(BigDecimal value) {
            addCriterion("bird_egg_amount <>", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountGreaterThan(BigDecimal value) {
            addCriterion("bird_egg_amount >", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bird_egg_amount >=", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountLessThan(BigDecimal value) {
            addCriterion("bird_egg_amount <", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bird_egg_amount <=", value, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountIn(List<BigDecimal> values) {
            addCriterion("bird_egg_amount in", values, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountNotIn(List<BigDecimal> values) {
            addCriterion("bird_egg_amount not in", values, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bird_egg_amount between", value1, value2, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andBirdEggAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bird_egg_amount not between", value1, value2, "birdEggAmount");
            return (Criteria) this;
        }

        public Criteria andAmountTypeIsNull() {
            addCriterion("amount_type is null");
            return (Criteria) this;
        }

        public Criteria andAmountTypeIsNotNull() {
            addCriterion("amount_type is not null");
            return (Criteria) this;
        }

        public Criteria andAmountTypeEqualTo(Byte value) {
            addCriterion("amount_type =", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeNotEqualTo(Byte value) {
            addCriterion("amount_type <>", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeGreaterThan(Byte value) {
            addCriterion("amount_type >", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("amount_type >=", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeLessThan(Byte value) {
            addCriterion("amount_type <", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeLessThanOrEqualTo(Byte value) {
            addCriterion("amount_type <=", value, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeIn(List<Byte> values) {
            addCriterion("amount_type in", values, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeNotIn(List<Byte> values) {
            addCriterion("amount_type not in", values, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeBetween(Byte value1, Byte value2) {
            addCriterion("amount_type between", value1, value2, "amountType");
            return (Criteria) this;
        }

        public Criteria andAmountTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("amount_type not between", value1, value2, "amountType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeIsNull() {
            addCriterion("admin_pay_type is null");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeIsNotNull() {
            addCriterion("admin_pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeEqualTo(Integer value) {
            addCriterion("admin_pay_type =", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeNotEqualTo(Integer value) {
            addCriterion("admin_pay_type <>", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeGreaterThan(Integer value) {
            addCriterion("admin_pay_type >", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("admin_pay_type >=", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeLessThan(Integer value) {
            addCriterion("admin_pay_type <", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeLessThanOrEqualTo(Integer value) {
            addCriterion("admin_pay_type <=", value, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeIn(List<Integer> values) {
            addCriterion("admin_pay_type in", values, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeNotIn(List<Integer> values) {
            addCriterion("admin_pay_type not in", values, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeBetween(Integer value1, Integer value2) {
            addCriterion("admin_pay_type between", value1, value2, "adminPayType");
            return (Criteria) this;
        }

        public Criteria andAdminPayTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("admin_pay_type not between", value1, value2, "adminPayType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}